package ProjetCorba.ColisPackage;

/**
 * Enum definition : statusCol
 *
 * @author OpenORB Compiler
*/
public final class statusCol implements org.omg.CORBA.portable.IDLEntity
{
    /**
     * Enum member Depose value 
     */
    public static final int _Depose = 0;

    /**
     * Enum member Depose
     */
    public static final statusCol Depose = new statusCol(_Depose);

    /**
     * Enum member EnAttenteDeTransport value 
     */
    public static final int _EnAttenteDeTransport = 1;

    /**
     * Enum member EnAttenteDeTransport
     */
    public static final statusCol EnAttenteDeTransport = new statusCol(_EnAttenteDeTransport);

    /**
     * Enum member TransporteurOK value 
     */
    public static final int _TransporteurOK = 2;

    /**
     * Enum member TransporteurOK
     */
    public static final statusCol TransporteurOK = new statusCol(_TransporteurOK);

    /**
     * Enum member EnTransit value 
     */
    public static final int _EnTransit = 3;

    /**
     * Enum member EnTransit
     */
    public static final statusCol EnTransit = new statusCol(_EnTransit);

    /**
     * Enum member ArriveeADestination value 
     */
    public static final int _ArriveeADestination = 4;

    /**
     * Enum member ArriveeADestination
     */
    public static final statusCol ArriveeADestination = new statusCol(_ArriveeADestination);

    /**
     * Enum member Retirer value 
     */
    public static final int _Retirer = 5;

    /**
     * Enum member Retirer
     */
    public static final statusCol Retirer = new statusCol(_Retirer);

    /**
     * Internal member value 
     */
    private final int _statusCol_value;

    /**
     * Private constructor
     * @param  the enum value for this new member
     */
    private statusCol( final int value )
    {
        _statusCol_value = value;
    }

    /**
     * Maintains singleton property for serialized enums.
     * Issue 4271: IDL/Java issue, Mapping for IDL enum.
     */
    public java.lang.Object readResolve() throws java.io.ObjectStreamException
    {
        return from_int( value() );
    }

    /**
     * Return the internal member value
     * @return the member value
     */
    public int value()
    {
        return _statusCol_value;
    }

    /**
     * Return a enum member from its value
     * @param  an enum value
     * @return an enum member
         */
    public static statusCol from_int(int value)
    {
        switch (value)
        {
        case 0 :
            return Depose;
        case 1 :
            return EnAttenteDeTransport;
        case 2 :
            return TransporteurOK;
        case 3 :
            return EnTransit;
        case 4 :
            return ArriveeADestination;
        case 5 :
            return Retirer;
        }
        throw new org.omg.CORBA.BAD_OPERATION();
    }

    /**
     * Return a string representation
     * @return a string representation of the enumeration
     */
    public java.lang.String toString()
    {
        switch (_statusCol_value)
        {
        case 0 :
            return "Depose";
        case 1 :
            return "EnAttenteDeTransport";
        case 2 :
            return "TransporteurOK";
        case 3 :
            return "EnTransit";
        case 4 :
            return "ArriveeADestination";
        case 5 :
            return "Retirer";
        }
        throw new org.omg.CORBA.BAD_OPERATION();
    }

}
